//**************************************************************************************
// Page Generated Class File
//**************************************************************************************
//**** DO NOT CHANGE THIS FILE.  THE CONTENTS WILL BE OVERRIDEN ON NEXT MODEL SAVE. ****
//**************************************************************************************
using System;
using System.ComponentModel;
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Validation;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
using DevExpress.Xpo;

namespace Liekhus.Testing.Wiki.Module
{
    [ImageName("BO_Unknown")]
    [CreatableItem(true)]
    [NavigationItem(true)]
    [DefaultListViewOptions()]
    [DefaultProperty("Name")]
    public partial class Page : BaseObject
    {
        #region Constructor
        public Page() : base()
        {
        }

        public Page(Session session) : base(session)
        {
        }
        #endregion

        #region Properties
        private String m_name;
        [Size(250)]
        [RuleRequiredField("Page_Name_RuleRequiredField", DefaultContexts.Save, "Page name is required.")]
        [RuleUniqueValue("Page_Name_RuleUniqueValue", DefaultContexts.Save, "Page name must be unique.")]
        public String Name
        {
            get { return m_name; }
            set { SetPropertyValue("Name", ref m_name, value); }
        }

        private String m_content;
        [Size(8000)]
        public String Content
        {
            get { return m_content; }
            set { SetPropertyValue("Content", ref m_content, value); }
        }

        #endregion
    }
}
